<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>年级管理</title>
<link href="/widget/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"  type="text/css"/>
<link href="/widget/iconfont/iconfont.css" rel="stylesheet" />
 {cssjs}
<link href="/res/css/inside_page.css" rel="stylesheet"  type="text/css"/>
</head>

<body>
<div class="container-fluid larry-wrapper">
     <div class="row">
         <div class="col-xs-12 col-sm-12 col-md-12">
             <!--头部搜索-->
             <section class="panel panel-padding">
                    <form class="layui-form">
                        <div class="layui-form">
                            <div class="layui-inline">
                                <div class="layui-input-inline">
                                    <input class="layui-input" id="d_name" name="d_name" value="{dname}" placeholder="年级名称">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <input type="button" lay-submit class="layui-btn" lay-filter="search" id="btn_search" value="查找"/>
                            </div>
                        </div>
                    </form>
            </section>

            <!--列表-->
                <section class="panel panel-padding">
                    <div class="group-button">
                        <button class="layui-btn layui-btn-small modal-iframe" id="btn_add" {add}>
                            <i class="iconfont">&#xe649;</i> 添加
                        </button>
                        <button class="layui-btn layui-btn-small layui-btn-danger ajax-all" id="btn_del" {del}>
                            <i class="iconfont">&#xe626;</i> 删除
                        </button>
                        <button class="layui-btn layui-btn-small layui-btn-warm ajax-all" id="btn_ref">
                            <i class="iconfont">&#xe62e;</i> 刷新
                        </button>
                    </div>
                    <div class="layui-form">
                        <table id="example" class="layui-table lay-even">
                            <thead>
                                <tr>
                                    <th width="30"><input type="checkbox" id="checkall" data-name="checkbox" lay-filter="check" lay-skin="primary"></th>
                                    <th width="60">序号</th>
                                    <th>年级名称</th>
                                    <th>学段</th>
                                    <th width="70">排序</th>
                                    <th width="152">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <!-- START list -->  
                                <tr>
                                    <td>
                                    <input type="checkbox" name="checkbox" lay-skin="primary" value="{id}"/>
                                    </td>
                                    <td>{id}</td>
                                    <td>{grade_name}</td>
                                    <td>{xdname}</td>
                                    <td>{odx}</td>
                                    <td>
                                        <button class="layui-btn layui-btn-mini modal-iframe" data-opt="update" data-id="{id}" {edit}>
                                            <i class="iconfont">&#xe653;</i>编辑
                                        </button>
                                        <button class="layui-btn layui-btn-mini layui-btn-danger ajax" data-opt="del"  data-id="{id}" {del}>
                                            <i class="iconfont">&#xe626;</i>删除
                                        </button></td>
                                    </td>
                                </tr>
                                <!-- END list --> 
                            </tbody>
                        </table>
                    </div>

                    <div class="text-right" id="page">
                        <ul class="pagination pull-right">
                        {page}
                        </ul>
                    </div>
                </section>
         </div>
     </div>
</div>
   {jsmodel}
   <script type="text/javascript">
        layui.use('sys_grade');
    </script>
</body>
</html>
